package com.leyou.auth.service;

import com.leyou.common.auth.entity.UserInfo;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public interface AuthService {
    /**
     * 用户登录
     */
    void login(String username, String password, HttpServletResponse response);
    /**
     * 校验用户登录状态，获取用户名
     */
    UserInfo verify(HttpServletRequest request,HttpServletResponse response);
    /**
     * 退出登录
     */
    void logout(HttpServletRequest request, HttpServletResponse response);
}
